package cate.common.table.activity.crossrankactivity.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.XSSFRowWrap;
import cate.common.table.activity.rankactivity.row.RankActivityBaseRow;
import easy.java.dev.note.NoteClass;

@NoteClass("跨服排行活动基础")
public class CrossRankActivityBaseRow extends RankActivityBaseRow {
    @EExcelNoteField(fieldName = "查看条数")
    public int watchMax;
    @EExcelNoteField(fieldName = "入榜最大条数")
    public int rankMax;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("活动配置ID");
        this.funcId = xrw.getInteger("功能ID");
        this.group = xrw.getInteger("活动分组");
        this.mailId = xrw.getInteger("邮件",0);
        this.rankId = xrw.getInteger("排行榜ID");
        this.event = xrw.getInteger("排行榜事件", 0);
        this.param = xrw.getInteger("排行榜参数", 0);
        this.condition = xrw.getInteger("排行榜参与条件", 0);
        this.tag = xrw.getString("tag");
        this.backRewardStr = xrw.getString("返利道具");
        this.backScale = xrw.getDouble("返利比例", 0d);
        this.backMailId = xrw.getInteger("返利邮件", 0);
    }
}
